Page({
  data: { room: {}, id: '' },
  onLoad(options) {
    const id = Number(options.id);
    this.setData({ id });
    this.fetchDataById(id);
  },

  onClickLeft() {
    wx.showToast({ title: '返回更多', icon: 'none' });
    wx.navigateBack({
      delta: 2
    });
  },

  fetchDataById(id) {
    const rooms = [
      { id: 1, title: '2104', nom: '1' },
      { id: 2, title: '2505(软件协会)', nom: '2' }
      // ...其他数据
    ];
    const room = rooms.find(item => item.id === id); 
    if (room) this.setData({ room });
  }
});